#include <iostream>
#include <string>
using namespace std;
int main()
{
    string N;
    cin >> N;
    int c = N.size();
    int a = N[0] - '0';
    int b = N[1] - '0';
    int prev = N[2] - '0';
    if (prev >= 5)
    {
        b++;
        if (b == 10)
        {
            a++;
            b = 0;
            if (a == 10)
            {
                a = 1;
                b = 0;
                c++;
            }
        }
    }
    cout << a << "." << b << "*10^" << c - 1 << endl;
}


